var ulul = document.getElementsByClassName("ulul")[0];
var js = document.getElementsByClassName("js")[0];
var jx = document.getElementsByClassName("jx")[0];

var a = 0;
jx.onclick = function() {
    if (a == 2) {
        a = 2;
    } else {
        a++;
    }
    var c = a * -185;
    moveanimation2(ulul, c)
}

js.onclick = function() {
    if (a == 0) {
        a = 0;
    } else {
        a--;
    }
    var c = a * -185;
    moveanimation2(ulul, c)
}